@import './default'; // antd-admin

@red: red;
@blue: #39F;
@green: green;
@orange: orange;
@purple: purple;
@red-light: pink;
@blue-light: lightblue;
@green-light: lightgreen;
@orange-light: #EACDA0;
@purple-light: #d897eb;
@dark-half: #494949;

@card-actions-background: #f5f8fa;
@text-color: #4B4F52;
@text-color-sub: #979FA8;
@text-color-light: #BBC3C9;

@base-size: 8px;
@text-size: 14px;
@text-size-big: 16px;
@text-size-small: 12px;

@shadow-1: 4px 4px 20px 0 rgba(0,0,0,0.01);
@shadow-2: 4px 4px 40px 0 rgba(0,0,0,0.05);
@transition-ease-in: all 0.3s ease-out;
@transition-ease-out: all 0.3s ease-out;
@ease-in: ease-in;

.textOverflow {
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
  white-space: nowrap;
}

.textOverflowMulti(@line: 3, @bg: #fff) {
  overflow: hidden;
  position: relative;
  line-height: 1.5em;
  max-height: @line * 1.5em;
  text-align: justify;
  margin-right: -1em;
  padding-right: 1em;
  &:before {
    background: @bg;
    content: '...';
    padding: 0 1px;
    position: absolute;
    right: 14px;
    bottom: 0;
  }
  &:after {
    background: white;
    content: '';
    margin-top: 0.2em;
    position: absolute;
    right: 14px;
    width: 1em;
    height: 1em;
  }
}

// mixins for clearfix
// ------------------------
.clearfix() {
  zoom: 1;
  &:before,
  &:after {
    content: " ";
    display: table;
  }
  &:after {
    clear: both;
    visibility: hidden;
    font-size: 0;
    height: 0;
  }
}
.pullLeft {
  float: left;
}
.pullRight {
  float: right;
}

////// margin and padding
// 8px
.MT8 {
  margin-top: 8px;
}
.MB8 {
  margin-bottom: @base-size;
}
.ML8 {
  margin-left: 8px;
}
.MR8 {
  margin-right: 8px;
}

// 16px
.MT16 {
  margin-top: 16px;
}
.MB16 {
  margin-bottom: @base-size * 2;
}
.ML16 {
  margin-left: 16px;
}
.MR16 {
  margin-right: 16px;
}

// 24px
.MT24 {
  margin-top: 24px;
}
.MB24 {
  margin-bottom: 24px;
}
.ML24 {
  margin-left: 24px;
}
.MR24 {
  margin-right: 24px;
}

////// color
.darkblue {
  color: darkblue;
}

.blue {
  color: @blue;
}

.green {
  color: @green;
}

.lightgreen {
  color: @green-light;
}

.orange {
  color: @orange;
}

.brown {
  color: saddlebrown;
}

.red {
  color: @red;
}

.magenta {
  color: magenta;
}

.purple {
  color: @purple;
}

.lightgray {
  color: lightgray;
}
